/* a标签 */
a {
	border: none;
	text-decoration: none;
	color: #000;
}

/* 等个导航的样式 */
.nav {
	width: 50px;
	height: 50vh;
	background-color: rgba(255, 255, 255, 1.0);
	/* background-color: rgba(0, 0, 0, 0.1); */
	/* padding: 1px; */

	/* 固定在屏幕边缘 */
	position: fixed;
	left: -150px;
	top: 0;
	bottom: 0;
	/* margin：auto 设置了才能居中 */
	margin: auto;

	transition: 0.5s;
	border-radius: 10px;
	box-shadow: var(--shadow);
	z-index: 999;
}



.nav-btn {
	width: 100%;
}

.nav-btn>div {
	width: 100%;
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;

	position: relative;

}

/* 每一行 */
.nav-btn>.item {}



/* 爱好按钮和菜单 */
.nav-btn .item-menu {
	width: 80px;
	list-style: none;
	position: absolute;
	right: -85px;
	/* background-color: #d3d3d3; */
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	border-radius: 5px;
	display: none;
	background-color: #ffffff;
	transition: .5s;
	/* transform: scale(0.8); */
}

.nav-btn .item-menu>li {
	/* width: 100px; */
	height: 30px;
	text-align: center;
	line-height: attr(height);
	transition: .5s;
	transform: scale(0.9);
	white-space: nowrap;
}

.nav-btn .item:nth-child(2):hover #item-menu-hobby {
	display: block;
	animation-name: menu-an;
	animation-duration: .5s;
}

.nav-btn .item:nth-child(3):hover #item-menu-study {
	display: block;
	animation-name: menu-an;
	animation-duration: .5s;
}

.nav-btn .item:nth-child(4):hover #item-menu-music {
	display: block;
	animation-name: menu-an;
	animation-duration: .5s;
}

.nav-btn .item:nth-child(5):hover #item-menu-sport {
	display: block;
	animation-name: menu-an;
	animation-duration: .5s;
}

.nav-btn .item:nth-child(6):hover #item-menu-movie {
	display: block;
	animation-name: menu-an;
	animation-duration: .5s;
}

@keyframes menu-an {
	from {
		width: 0;
		right: 0;
		opacity: 0;
	}

	to {
		width: 80px;
		right: -85px;
		opacity: 1;
	}
}


.nav-btn .item-menu>li:hover {
	background-color: rgba(0, 0, 0, 0.1);
	transform: scale(1);
}








#menu-control {
	width: 130%;
	height: 130%;
	opacity: 0;

	background-color: #000;
	left: -10px;
	top: 0;
	bottom: 0;
	margin: auto;
	position: absolute;
	z-index: 0;
}



/* 左边的图标样式 */
.nav-btn .l-ico {
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-btn .l-ico>img {
	width: 30px;
	height: 30px;
	scale: 0.9;
	opacity: 1;
}


/* 右边的文字样式 */
.nav-btn .r-text {
	width: 0px;
	height: 50px;
	font-weight: 700;
	line-height: 50px;
	overflow: hidden;
	white-space: nowrap;
	text-align: left;
	transition: 0.5s;
	opacity: 0;
	color: rgba(141, 141, 141, 1.0);
}


/* hover效果 */
.nav:hover {
	width: 120px;
	/* background-color: #000; */
}

.nav:hover .r-text {
	width: 70px;
	opacity: 1;
}

.nav-btn>.item:hover {
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}



#setting-btn {
	position: absolute;
	bottom: 0;
}

#setting-btn img {
	opacity: 0.5;
}


#setting-menu {
	width: 120px;
	height: 100px;
	padding: 10px;
	background-color: #ffffff;
	overflow: hidden;
	font-size: 16px;
	opacity: 0;
	display: none;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	position: absolute;
	bottom: 0;
	right: -135px;
	transition: opacity 1s;
	/* transition-duration: 1s; */

	border-radius: var(--boder-radius);
	box-shadow: var(--shadow);
}


#setting-menu p {
	width: 100%;
	height: 30px;
	text-align: center;
	line-height: attr(height);
	/* border-radius: var(--boder-radius); */
	/* box-shadow: var(--shadow); */
}

#setting-btn:hover #setting-menu {
	display: flex;
	opacity: 1;
}



#setting-menu p:hover {
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}
